Said plugin's document is very poor. They said the Java doc will contains more information about how to write macro using Java and compiled to class bytecode and run this .class as JEdit macro. But the Jar file JavaMacros.jar contains no Java doc at all. I have no idea how to use it and it seemed the plugin is no longer updated. Please consider updating it or just remove it and clearly state that bytecode .class file currently can't be run as JEdit macro and you can't write JEdit macro in Java so other people know that it is currently impossible and they would have a look to implement an actual working solution. Thanks.
Submitted | ruanjiaxing - 2020-05-24 14:30:12.745000 | Assigned | daleanson |
---|---|---|---|
Priority | 5 | Labels | |
Status | open | Group | |
Resolution | None |
2020-05-24 19:41:07.202000 daleanson |
Well, you're right, the documentation is poor. However, the plugin does work as advertised,
but it's a little unusual. Here's a working example, more or less from the JavaMacro
code itself, which would have been in the javadoc if the javadoc had actually been
included with the plugin:
|
---|---|
2020-05-24 19:41:34.540000 daleanson |
- **assigned_to**: Dale Anson |
2020-05-25 16:08:18.399000 ruanjiaxing |
Thank you. Your example worked. Could you extend the plugin so it would run a jar file and not just a .class file? I found .class file is a bit inconvenient. I also don't understand why the author didn't start with jar file from the beginning but chose .class file instead. |
2020-05-25 18:30:44.458000 daleanson |
Probably not. The idea of a macro is something small, quick, and not very complicated. If you need more than that, as in multiple classes in a jar file, then you probably need a plugin, which is packaged in a jar file. |
2020-05-26 05:29:18.579000 ruanjiaxing |
Thanks. I got it. |